import 'package:backend.core/core/domain/entities/api/google_play/api_google_play_one_time_purchased_item_transaction.dart';
import 'package:backend.core/core/domain/entities/api/google_play/api_google_play_purchased_item.dart';
import 'package:backend.core/core/domain/entities/api/google_play/api_google_play_purchased_item_acknowledgement_status.dart';
import 'package:equatable/equatable.dart';

class ApiGooglePlayOneTimePurchasedItem extends Equatable implements ApiGooglePlayPurchasedItem {
  const ApiGooglePlayOneTimePurchasedItem({
    required this.purchaseItemSku,
    required this.purchaseToken,
    required this.test,
    required this.acknowledgementStatus,
    required this.revoked,
    required this.transaction,
  });

  final String purchaseItemSku;
  final String purchaseToken;
  final bool test;
  final ApiGooglePlayPurchasedItemAcknowledgementStatus acknowledgementStatus;
  final bool revoked;
  final ApiGooglePlayOneTimePurchasedItemTransaction transaction;

  @override
  List<Object?> get props {
    return [
      purchaseItemSku,
      purchaseToken,
      test,
      acknowledgementStatus,
      revoked,
      transaction,
    ];
  }
}
